package com.example.ysdt.entiey;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@ApiModel("商品")
public class Product {

    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("商品编号")
    private String product_no;

    @ApiModelProperty("商品名称")
    private String product_name;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("类别")
    private String category;

    @ApiModelProperty("数量")
    private Integer quantity;

    @ApiModelProperty("图片地址")
    private String picture_url;

    @ApiModelProperty("用户id")
    private Integer user_id;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("create_time")
    private Date create_time;

    @ApiModelProperty("update_time")
    private Date update_time;

    @ApiModelProperty("is_down")
    private Boolean is_down;

    @ApiModelProperty("down_time")
    private Date down_time;

    @ApiModelProperty("category_name")
    private String category_name;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProduct_no() {
        return product_no;
    }

    public void setProduct_no(String product_no) {
        this.product_no = product_no;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public String getPicture_url() {
        return picture_url;
    }

    public void setPicture_url(String picture_url) {
        this.picture_url = picture_url;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public Boolean getIs_down() {
        return is_down;
    }

    public void setIs_down(Boolean is_down) {
        this.is_down = is_down;
    }

    public Date getDown_time() {
        return down_time;
    }

    public void setDown_time(Date down_time) {
        this.down_time = down_time;
    }

    public String getCategory_name() {
        return category_name;
    }

    public void setCategory_name(String category_name) {
        this.category_name = category_name;
    }
}
